<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="logic" uri="http://struts.apache.org/tags-logic"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>



<logic:present name="auth" scope="session">

	<bean:define id="role" value="${auth.role.roleType}" scope="session" />
	<logic:equal name="role" value="dispatcher">
		<a href="LinkAction.do?method=employees"> <bean:message
				key="employees" />
		</a>

		<br>
		<a href="LinkAction.do?method=flightcrews"> <bean:message
				key="flightcrews" />
		</a>
	</logic:equal>

	<logic:equal name="role" value="admin">
		<a href="LinkAction.do?method=flightcrews"> <bean:message
				key="flightcrews" />
		</a>
		<br>
		<a href="LinkAction.do?method=airports"> <bean:message
				key="airports" />
		</a>
		<br>
		<a href="LinkAction.do?method=planes"> <bean:message key="planes" />
		</a>
		<br>
		<a href="LinkAction.do?method=flights"> <bean:message
				key="flights" />
		</a>
	</logic:equal>
	<br>
</logic:present>


